<template>
  <div id="basic-layout">
    <a-layout>
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <!--        target="_blank" 在新窗口中打开链接-->
        <a href="https://v.douyin.com/2VAQe91/" target="_blank">
          @ 半 颗 花 菜
        </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
</script>

<style scoped>
#basic-layout .footer {
  background: #efefef;
  text-align: center;
  position: fixed; /* 位置固定*/
  bottom: 0; /* 距离底部的位置*/
  left: 0;
  right: 0;
  padding: 20px;
}

#basic-layout .content {
  padding: 50px;
  margin-bottom: 20px;
  background: linear-gradient(
    to right,
    #9f9f9f,
    #ffffff
  ); /* 设置渐变色，从左到右*/
}

#basic-layout .header {
  background: #ffffff;
  margin-bottom: 16px;
  color: unset;
  padding-inline: 20px;
}
</style>
